package com.ruyuan.listener;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;
import org.springframework.stereotype.Component;

/**
 * @author xx
 */
@Component
public class MySessionListener1 implements SessionListener {

    @Override
    public void onStart(Session session) {
        System.out.println("create session1 " + session.getId());
    }

    @Override
    public void onStop(Session session) {
        System.out.println("stop session1 " + session.getId());
    }

    @Override
    public void onExpiration(Session session) {
        System.out.println("expire session1 " + session.getId());
    }

}
